package com.my.java8;

import java.util.function.Consumer;

public class TemplateExample {

	abstract class OnlineBanking {
		public void processCustomer(int id) {
			// Customer c = Database.getCustomerWithId(id);
			// makeCustomerHappy(c);
		}

		abstract void makeCustomerHappy(Object c);
	}

	public void processCustomer(int id, Consumer<Object> makeCustomerHappy) {
		// Customer c = Database.getCustomerWithId(id);
		makeCustomerHappy.accept(new Object());
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
